package com.jkoss.wine.warehouse.service.impl;

import com.jkoss.wine.warehouse.entity.WareInventory;
import com.jkoss.wine.warehouse.mapper.WareInventoryMapper;
import com.jkoss.wine.warehouse.service.IWareInventoryService;
import com.baomidou.mybatisplus.mapper.SqlHelper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;


/**
 * 仓库库存 服务实现类
 * 
 * @Author Ning
 * @Version 1.0, 2018-10-19
 * @See
 * @Since com.jkoss.wine.warehouse.service.impl
 * @Description: TODO
 */
@Service
public class WareInventoryServiceImpl extends ServiceImpl<WareInventoryMapper, WareInventory> implements IWareInventoryService {

	@Override
	public Page selectVoList(Page page, Wrapper wrapper) {
		SqlHelper.fillWrapper(page, wrapper);
		page.setRecords(baseMapper.selectVoList(page, wrapper));
		return page;
	}

}
